package router

import (
	"github.com/gin-gonic/gin"
	"shop-sys/controller"
)

func PublicCaptcha(router *gin.RouterGroup) {
	api := &controller.CaptchaController{}
	captcha := router.Group("/captcha")
	{
		captcha.GET("", api.Generate)              //  获取验证码ID
		captcha.GET("/:captchaId", api.GetCaptcha) // 获取图像地址
	}
}
